{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\kamcd\Dropbox\CDK WORK\racial disparities essentialism\JOP replication files\Anoll Kam Marcellin ANES 2022 Pilot Analyses.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}10 Jan 2025, 13:26:19
{txt}
{com}. 
. clear
{txt}
{com}. cd "C:\Users\kamcd\Dropbox\CDK WORK\racial disparities essentialism\JOP replication files"
{res}C:\Users\kamcd\Dropbox\CDK WORK\racial disparities essentialism\JOP replication files
{txt}
{com}. use "Anoll Kam Marcellin ANES 2022 Pilot Data", clear
{txt}
{com}. svyset [pweight=weight]

{txt}Sampling weights:{col 19}{res}weight
             {txt}VCE:{col 19}{res}linearized
     {txt}Single unit:{col 19}{res}missing
        {txt}Strata 1:{col 19}<one>
 Sampling unit 1:{col 19}<observations>
           FPC 1:{col 19}<zero>
{p2colreset}{...}

{com}. set scheme s1mono
{txt}
{com}. 
. *****RACE OF RESPONDENT AND PARTY OF WHITES*****
. *generate categorical variables for respondents
. gen fivegroups = .
{txt}(1,585 missing values generated)

{com}. replace fivegroups = 1 if ras==1|rpi==1
{txt}(67 real changes made)

{com}. replace fivegroups = 2 if rbl==1
{txt}(211 real changes made)

{com}. replace fivegroups = 3 if rwh==1 & eth==1
{txt}(182 real changes made)

{com}. replace fivegroups = 4 if rwh==1 & pid7>0 & pid7<4
{txt}(460 real changes made)

{com}. replace fivegroups = 5 if rwh==1 & pid7>4 & pid7<8
{txt}(531 real changes made)

{com}. lab def fivegroups 1"Asian" 2"Black" 3"Hispanic" 4"White DEM" 5"White GOP"
{txt}
{com}. lab val fivegroups fivegroups
{txt}
{com}. tab fivegroups

 {txt}fivegroups {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
      Asian {c |}{res}         58        4.43        4.43
{txt}      Black {c |}{res}        203       15.51       19.94
{txt}   Hispanic {c |}{res}         57        4.35       24.29
{txt}  White DEM {c |}{res}        460       35.14       59.43
{txt}  White GOP {c |}{res}        531       40.57      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,309      100.00
{txt}
{com}. 
. *level of nonresponse*
. egen gdiff_miss = anycount(gdiffbiol gdiffculture gdiffpolicy), val(-7)
{txt}
{com}. tab gdiff_miss

  {txt}gdiffbiol {c |}
gdiffcultur {c |}
          e {c |}
gdiffpolicy {c |}
      == -7 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      1,582       99.81       99.81
{txt}          1 {c |}{res}          1        0.06       99.87
{txt}          3 {c |}{res}          2        0.13      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,585      100.00
{txt}
{com}. /*Most people answered these questions*/
. /*1 person refused one of the questions; 2 people skipped the entire battery*/
. /*1582 people answered ALL of them*/
. 
. //Analogous to first set of analyses, proportion agreeing with >1 Q
. recode gdiffbiol (1/4=0)(5=1)(else=.), gen(NOT_bio)
{txt}(1,585 differences between {bf:gdiffbiol} and {bf:NOT_bio})

{com}. recode gdiffculture (1/4=0)(5=1)(else=.), gen(NOT_cul)
{txt}(1,585 differences between {bf:gdiffculture} and {bf:NOT_cul})

{com}. recode gdiffpolicy (1/4=0)(5=1)(else=.), gen(NOT_pol)
{txt}(1,585 differences between {bf:gdiffpolicy} and {bf:NOT_pol})

{com}. 
. gen YES_bio = -1*(NOT_bio-1)
{txt}(3 missing values generated)

{com}. gen YES_cul = -1*(NOT_cul-1)
{txt}(2 missing values generated)

{com}. gen YES_pol = -1*(NOT_pol-1)
{txt}(2 missing values generated)

{com}. 
. egen number_agree = anycount(YES_bio YES_cul YES_pol), val(1)
{txt}
{com}. recode number_agree (1 2 3=1)(0=0)(else=.), gen(any_agree)
{txt}(1,217 differences between {bf:number_agree} and {bf:any_agree})

{com}. tab number_agree

    {txt}YES_bio {c |}
    YES_cul {c |}
 YES_pol == {c |}
          1 {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        139        8.77        8.77
{txt}          1 {c |}{res}        229       14.45       23.22
{txt}          2 {c |}{res}        466       29.40       52.62
{txt}          3 {c |}{res}        751       47.38      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,585      100.00
{txt}
{com}. svy: reg any_agree i.fivegroups
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,236}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,236}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,236.7822}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,235}
{txt}{col 51}{lalign 15:F({res:4}, {res:1232})}{col 66} = {res}{ralign 10:15.46}
{txt}{col 51}{lalign 15:Prob > F}{col 66} = {res}{ralign 10:0.0000}
{txt}{col 51}{lalign 15:R-squared}{col 66} = {res}{ralign 10:0.0539}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1}   any_agree{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}fivegroups {c |}
{space 6}Black  {c |}{col 14}{res}{space 2}-.0344671{col 26}{space 2}  .023756{col 37}{space 1}   -1.45{col 46}{space 3}0.147{col 54}{space 4}-.0810738{col 67}{space 3} .0121396
{txt}{space 3}Hispanic  {c |}{col 14}{res}{space 2}-.1094787{col 26}{space 2} .0511247{col 37}{space 1}   -2.14{col 46}{space 3}0.032{col 54}{space 4}-.2097794{col 67}{space 3}-.0091779
{txt}{space 2}White DEM  {c |}{col 14}{res}{space 2}  .001435{col 26}{space 2} .0182745{col 37}{space 1}    0.08{col 46}{space 3}0.937{col 54}{space 4}-.0344175{col 67}{space 3} .0372875
{txt}{space 2}White GOP  {c |}{col 14}{res}{space 2}-.1441516{col 26}{space 2} .0246647{col 37}{space 1}   -5.84{col 46}{space 3}0.000{col 54}{space 4}-.1925409{col 67}{space 3}-.0957623
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .9774108{col 26}{space 2} .0168228{col 37}{space 1}   58.10{col 46}{space 3}0.000{col 54}{space 4} .9444064{col 67}{space 3} 1.010415
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. drop if any_agree==0 /*disputing the underlying premise of the Q*/
{txt}(139 observations deleted)

{com}. 
. recode gdiffbiol (1=1)(2=.75)(3=.5)(4=.25)(5=0)(else=.), gen(diff_bio)
{txt}(1,340 differences between {bf:gdiffbiol} and {bf:diff_bio})

{com}. recode gdiffculture (1=1)(2=.75)(3=.5)(4=.25)(5=0)(else=.), gen(diff_cul)
{txt}(1,267 differences between {bf:gdiffculture} and {bf:diff_cul})

{com}. recode gdiffpolicy (1=1)(2=.75)(3=.5)(4=.25)(5=0)(else=.), gen(diff_pol)
{txt}(1,071 differences between {bf:gdiffpolicy} and {bf:diff_pol})

{com}. 
. *****in text
. svy: tab YES_bio
{res}{txt}(running {bf:tabulate} on estimation sample)
{res}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,364}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,364}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,368.3561}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,363}

{txt}{hline 10}{c TT}{hline 11}
  YES_bio {c |} proportion
{hline 10}{c +}{hline 11}
        0 {c |}      {res}.4017
        {txt}1 {c |}      {res}.5983
          {txt}{c |} 
    Total {c |}          {res}1
{txt}{hline 10}{c BT}{hline 11}
Key: {col 1}proportion = {res}Cell proportion
{txt}
{com}. svy: tab YES_cul
{res}{txt}(running {bf:tabulate} on estimation sample)
{res}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,365}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,365}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,368.8991}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,364}

{txt}{hline 10}{c TT}{hline 11}
  YES_cul {c |} proportion
{hline 10}{c +}{hline 11}
        0 {c |}      {res}.0882
        {txt}1 {c |}      {res}.9118
          {txt}{c |} 
    Total {c |}          {res}1
{txt}{hline 10}{c BT}{hline 11}
Key: {col 1}proportion = {res}Cell proportion
{txt}
{com}. svy: tab YES_pol
{res}{txt}(running {bf:tabulate} on estimation sample)
{res}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,365}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,365}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,368.8991}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,364}

{txt}{hline 10}{c TT}{hline 11}
  YES_pol {c |} proportion
{hline 10}{c +}{hline 11}
        0 {c |}      {res}.1294
        {txt}1 {c |}      {res}.8706
          {txt}{c |} 
    Total {c |}          {res}1
{txt}{hline 10}{c BT}{hline 11}
Key: {col 1}proportion = {res}Cell proportion
{txt}
{com}. svy: tab fivegroups YES_bio, row
{res}{txt}(running {bf:tabulate} on estimation sample)
{res}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,122}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,122}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,124.5519}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,121}

{txt}{hline 10}{c TT}{hline 20}
fivegroup {c |}       YES_bio      
s         {c |}     0      1  Total
{hline 10}{c +}{hline 20}
    Asian {c |} {res}.2321  .7679      1
    {txt}Black {c |} {res}.3043  .6957      1
 {txt}Hispanic {c |}  {res}.192   .808      1
 {txt}White DE {c |} {res}.5207  .4793      1
 {txt}White GO {c |} {res}.4192  .5808      1
          {txt}{c |} 
    Total {c |} {res}.4135  .5865      1
{txt}{hline 10}{c BT}{hline 20}
Key: {col 1}{res}Row proportion

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}4{txt}){col 35}= {res}  50.0223
{txt}{col 5}Design-based{col 19}F({res}3.73{txt}, {res}4178.43{txt}){col 35}= {res}   8.1098{col 51}{txt}P = {res}0.0000
{txt}
{com}. 
. **********START FIGURE 1**********
. gen gdiff1 = gdiffbiol
{txt}
{com}. gen gdiff2 = gdiffculture
{txt}
{com}. gen gdiff3 = gdiffpolicy
{txt}
{com}. 
. forval v = 1/3 {c -(}
{txt}  2{com}. recode gdiff`v' (1=1)(2 3 4 5=0)(else=.), gen(gdiffgreatdeal`v')
{txt}  3{com}. {c )-}
{txt}(1,340 differences between {bf:gdiff1} and {bf:gdiffgreatdeal1})
(1,267 differences between {bf:gdiff2} and {bf:gdiffgreatdeal2})
(1,071 differences between {bf:gdiff3} and {bf:gdiffgreatdeal3})

{com}. 
. forval v = 1/3 {c -(}
{txt}  2{com}. recode gdiff`v' (2=1)(1 3 4 5=0)(else=.), gen(gdiffalot`v')
{txt}  3{com}. {c )-}
{txt}(1,446 differences between {bf:gdiff1} and {bf:gdiffalot1})
(1,446 differences between {bf:gdiff2} and {bf:gdiffalot2})
(1,446 differences between {bf:gdiff3} and {bf:gdiffalot3})

{com}. 
. forval v = 1/3 {c -(}
{txt}  2{com}. recode gdiff`v' (3=1)(1 2 4 5=0)(else=.), gen(gdiffmoderate`v')
{txt}  3{com}. {c )-}
{txt}(1,446 differences between {bf:gdiff1} and {bf:gdiffmoderate1})
(1,446 differences between {bf:gdiff2} and {bf:gdiffmoderate2})
(1,446 differences between {bf:gdiff3} and {bf:gdiffmoderate3})

{com}. 
. forval v = 1/3 {c -(}
{txt}  2{com}. recode gdiff`v' (4=1)(1 2 3 5=0)(else=.), gen(gdiffalittle`v')
{txt}  3{com}. {c )-}
{txt}(1,446 differences between {bf:gdiff1} and {bf:gdiffalittle1})
(1,446 differences between {bf:gdiff2} and {bf:gdiffalittle2})
(1,446 differences between {bf:gdiff3} and {bf:gdiffalittle3})

{com}. 
. //% FOR FULL SAMPLE
. foreach j in greatdeal alot moderate alittle {c -(}
{txt}  2{com}.         preserve
{txt}  3{com}. collapse gdiff`j'1-gdiff`j'3 [pweight=weight]
{txt}  4{com}. gen id = _n
{txt}  5{com}. reshape long gdiff`j', i(id) j(Q)
{txt}  6{com}. lab def Q 1 "Biology" 2 "Culture" 3 "Politics"
{txt}  7{com}. lab val Q Q
{txt}  8{com}. sum
{txt}  9{com}. gen gdiff`j'percent = gdiff`j'*100
{txt} 10{com}. save gdiff`j'percent, replace
{txt} 11{com}. restore
{txt} 12{com}. {c )-}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffgreatdeal1 gdiffgreatdeal2 gdiffgreatdeal3{txt}->{res}gdiffgreatdeal
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffgreat~l {c |}{res}          3    .1474262    .0903339     .07303   .2479419
{txt}{p 0 4 2}
(file {bf}
gdiffgreatdealpercent.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffgreatdealpercent.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
       {res}gdiffalot1 gdiffalot2 gdiffalot3   {txt}->   {res}gdiffalot
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}{space 3}gdiffalot {c |}{res}          3    .1539375    .0391372   .1104044     .18621
{txt}{p 0 4 2}
(file {bf}
gdiffalotpercent.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalotpercent.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffmoderate1 gdiffmoderate2 gdiffmoderate3{txt}-> {res}gdiffmoderate
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffmoder~e {c |}{res}          3    .3062812    .0628429   .2576014   .3772252
{txt}{p 0 4 2}
(file {bf}
gdiffmoderatepercent.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffmoderatepercent.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffalittle1 gdiffalittle2 gdiffalittle3 {txt}->   {res}gdiffalittle
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffalittle {c |}{res}          3    .1859334     .036499   .1572941   .2270302
{txt}{p 0 4 2}
(file {bf}
gdiffalittlepercent.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalittlepercent.dta{rm}
saved
{p_end}

{com}. 
. //% BY FIVEGROUPS
. forval v=1/5 {c -(}
{txt}  2{com}. foreach j in greatdeal alot moderate alittle {c -(}
{txt}  3{com}.         preserve
{txt}  4{com}. collapse gdiff`j'1-gdiff`j'3 [pweight=weight] if fivegroups==`v'
{txt}  5{com}. gen id = _n
{txt}  6{com}. reshape long gdiff`j', i(id) j(Q)
{txt}  7{com}. lab def Q 1 "Biology" 2 "Culture" 3 "Politics"
{txt}  8{com}. lab val Q Q
{txt}  9{com}. sum
{txt} 10{com}. gen gdiff`j'percent_`v' = gdiff`j'*100
{txt} 11{com}. save gdiff`j'percent_`v', replace
{txt} 12{com}. restore
{txt} 13{com}. {c )-}
{txt} 14{com}. {c )-}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffgreatdeal1 gdiffgreatdeal2 gdiffgreatdeal3{txt}->{res}gdiffgreatdeal
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffgreat~l {c |}{res}          3    .0862266    .0459541    .034336   .1217791
{txt}{p 0 4 2}
(file {bf}
gdiffgreatdealpercent_1.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffgreatdealpercent_1.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
       {res}gdiffalot1 gdiffalot2 gdiffalot3   {txt}->   {res}gdiffalot
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}{space 3}gdiffalot {c |}{res}          3    .2088287    .0249665   .1938594   .2376503
{txt}{p 0 4 2}
(file {bf}
gdiffalotpercent_1.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalotpercent_1.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffmoderate1 gdiffmoderate2 gdiffmoderate3{txt}-> {res}gdiffmoderate
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffmoder~e {c |}{res}          3    .3822024    .0627041   .3432435    .454535
{txt}{p 0 4 2}
(file {bf}
gdiffmoderatepercent_1.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffmoderatepercent_1.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffalittle1 gdiffalittle2 gdiffalittle3 {txt}->   {res}gdiffalittle
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffalittle {c |}{res}          3    .1948619     .045619   .1513529   .2423326
{txt}{p 0 4 2}
(file {bf}
gdiffalittlepercent_1.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalittlepercent_1.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffgreatdeal1 gdiffgreatdeal2 gdiffgreatdeal3{txt}->{res}gdiffgreatdeal
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffgreat~l {c |}{res}          3    .2998124    .1422224   .1841514   .4586088
{txt}{p 0 4 2}
(file {bf}
gdiffgreatdealpercent_2.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffgreatdealpercent_2.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
       {res}gdiffalot1 gdiffalot2 gdiffalot3   {txt}->   {res}gdiffalot
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}{space 3}gdiffalot {c |}{res}          3    .1908883    .0138191   .1767272   .2043379
{txt}{p 0 4 2}
(file {bf}
gdiffalotpercent_2.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalotpercent_2.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffmoderate1 gdiffmoderate2 gdiffmoderate3{txt}-> {res}gdiffmoderate
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffmoder~e {c |}{res}          3    .2859017    .0279439   .2675598   .3180627
{txt}{p 0 4 2}
(file {bf}
gdiffmoderatepercent_2.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffmoderatepercent_2.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffalittle1 gdiffalittle2 gdiffalittle3 {txt}->   {res}gdiffalittle
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffalittle {c |}{res}          3    .0759599    .0429258    .038072   .1225807
{txt}{p 0 4 2}
(file {bf}
gdiffalittlepercent_2.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalittlepercent_2.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffgreatdeal1 gdiffgreatdeal2 gdiffgreatdeal3{txt}->{res}gdiffgreatdeal
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffgreat~l {c |}{res}          3    .0552296     .037832   .0258507   .0979176
{txt}{p 0 4 2}
(file {bf}
gdiffgreatdealpercent_3.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffgreatdealpercent_3.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
       {res}gdiffalot1 gdiffalot2 gdiffalot3   {txt}->   {res}gdiffalot
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}{space 3}gdiffalot {c |}{res}          3    .1398172    .0699696   .0630571   .2000298
{txt}{p 0 4 2}
(file {bf}
gdiffalotpercent_3.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalotpercent_3.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffmoderate1 gdiffmoderate2 gdiffmoderate3{txt}-> {res}gdiffmoderate
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffmoder~e {c |}{res}          3    .4624401    .0386152   .4239093   .5011392
{txt}{p 0 4 2}
(file {bf}
gdiffmoderatepercent_3.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffmoderatepercent_3.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffalittle1 gdiffalittle2 gdiffalittle3 {txt}->   {res}gdiffalittle
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffalittle {c |}{res}          3     .217866    .0393125   .1782326   .2568495
{txt}{p 0 4 2}
(file {bf}
gdiffalittlepercent_3.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalittlepercent_3.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffgreatdeal1 gdiffgreatdeal2 gdiffgreatdeal3{txt}->{res}gdiffgreatdeal
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffgreat~l {c |}{res}          3     .196559    .1824469    .063928   .4046265
{txt}{p 0 4 2}
(file {bf}
gdiffgreatdealpercent_4.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffgreatdealpercent_4.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
       {res}gdiffalot1 gdiffalot2 gdiffalot3   {txt}->   {res}gdiffalot
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}{space 3}gdiffalot {c |}{res}          3    .1724152     .068323   .1087933    .244627
{txt}{p 0 4 2}
(file {bf}
gdiffalotpercent_4.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalotpercent_4.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffmoderate1 gdiffmoderate2 gdiffmoderate3{txt}-> {res}gdiffmoderate
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffmoder~e {c |}{res}          3    .2592422     .087694   .1904394   .3579854
{txt}{p 0 4 2}
(file {bf}
gdiffmoderatepercent_4.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffmoderatepercent_4.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffalittle1 gdiffalittle2 gdiffalittle3 {txt}->   {res}gdiffalittle
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffalittle {c |}{res}          3    .1424449    .0807212   .0781834   .2330457
{txt}{p 0 4 2}
(file {bf}
gdiffalittlepercent_4.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalittlepercent_4.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffgreatdeal1 gdiffgreatdeal2 gdiffgreatdeal3{txt}->{res}gdiffgreatdeal
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffgreat~l {c |}{res}          3    .0497043    .0214945   .0277781   .0707394
{txt}{p 0 4 2}
(file {bf}
gdiffgreatdealpercent_5.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffgreatdealpercent_5.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
       {res}gdiffalot1 gdiffalot2 gdiffalot3   {txt}->   {res}gdiffalot
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}{space 3}gdiffalot {c |}{res}          3    .1142626    .0673629   .0655115   .1911287
{txt}{p 0 4 2}
(file {bf}
gdiffalotpercent_5.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalotpercent_5.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffmoderate1 gdiffmoderate2 gdiffmoderate3{txt}-> {res}gdiffmoderate
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffmoder~e {c |}{res}          3    .2967645    .0672821    .244019   .3725368
{txt}{p 0 4 2}
(file {bf}
gdiffmoderatepercent_5.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffmoderatepercent_5.dta{rm}
saved
{p_end}
{res}{txt}(j = 1 2 3)

Data{col 36}Wide{col 43}->{col 48}Long
{hline 77}
Number of observations     {res}           1   {txt}->   {res}3           
{txt}Number of variables        {res}           4   {txt}->   {res}3           
{txt}j variable (3 values)                     ->   {res}Q
{txt}xij variables:
{res}gdiffalittle1 gdiffalittle2 gdiffalittle3 {txt}->   {res}gdiffalittle
{txt}{hline 77}

    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 10}id {c |}{res}          3           1           0          1          1
{txt}{space 11}Q {c |}{res}          3           2           1          1          3
{txt}gdiffalittle {c |}{res}          3    .2878656    .0384403   .2435051   .3113753
{txt}{p 0 4 2}
(file {bf}
gdiffalittlepercent_5.dta{rm}
not found)
{p_end}
{p 0 4 2}
file {bf}
gdiffalittlepercent_5.dta{rm}
saved
{p_end}

{com}. 
. //PLOTTING % FULL SAMPLE
. preserve
{txt}
{com}. clear
{txt}
{com}. use gdiffgreatdealpercent, clear
{txt}
{com}. merge 1:1 Q using gdiffalotpercent
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (_merge==3)
{col 5}{hline 41}

{com}. merge 1:1 Q using gdiffmoderatepercent, gen(merge3)
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge3==3)
{col 5}{hline 41}

{com}. merge 1:1 Q using gdiffalittlepercent, gen(merge4)
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge4==3)
{col 5}{hline 41}

{com}. recode Q (1=1 "Biology")(2=2 "Culture")(3=3 "Racist Policies"), gen(graphorder)
{txt}(0 differences between {bf:Q} and {bf:graphorder})

{com}. graph hbar gdiffgreatdealpercent gdiffalotpercent gdiffmoderatepercent gdiffalittlepercent, over(graphorder) ///
> name(gdiff_all, replace) ///
> title("All Respondents", size(medium)) ytitle(" ") xsize(5) ysize(4) graphregion(margin(l+10)) stack asyvars legend(lab(1 "%A Great" "Deal") lab(2 "%A Lot") lab(3 "%Moderate" "Amount") lab(4 "%A Little") symxsize(5) keygap(.5) row(1) forcesize span)
{res}{txt}
{com}. restore
{txt}
{com}. 
. //PLOTTING % FIVE SUBGROUPS
. forval v=1/5 {c -(}
{txt}  2{com}. preserve
{txt}  3{com}. use gdiffgreatdealpercent_`v', clear
{txt}  4{com}.         gen str10 group`v' = "Asian" if `v'==1
{txt}  5{com}.         replace group`v' = "Black" if `v'==2
{txt}  6{com}.         replace group`v' = "Latino" if `v'==3
{txt}  7{com}.         replace group`v' = "White DEM" if `v'==4
{txt}  8{com}.         replace group`v' = "White GOP" if `v'==5
{txt}  9{com}.         local h = group`v'
{txt} 10{com}. merge 1:1 Q using gdiffalotpercent_`v'
{txt} 11{com}. merge 1:1 Q using gdiffmoderatepercent_`v', gen(merge3)
{txt} 12{com}. merge 1:1 Q using gdiffalittlepercent_`v', gen(merge4)
{txt} 13{com}. recode Q (1=1 "Biology")(2=2 "Culture")(3=3 "Racist Policies"), gen(graphorder)
{txt} 14{com}. graph hbar gdiffgreatdealpercent gdiffalotpercent gdiffmoderatepercent gdiffalittlepercent, over(graphorder) ///
> name(gdiff_`v', replace) ///
> title("`h' Respondents", size(medium)) ytitle(" ") xsize(5) ysize(4) graphregion(margin(l+10)) stack asyvars legend(lab(1 "%A Great" "Deal") lab(2 "%A Lot") lab(3 "%Moderate" "Amount") lab(4 "%A Little") symxsize(5) keygap(.5) row(1) forcesize span size(vvsmall))
{txt} 15{com}. restore
{txt} 16{com}. {c )-}
{txt}(0 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (_merge==3)
{col 5}{hline 41}
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge3==3)
{col 5}{hline 41}
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge4==3)
{col 5}{hline 41}
(0 differences between {bf:Q} and {bf:graphorder})
{res}{p 0 4 2}
{txt}(note:  named style
vvsmall not found in class
gsize,  default attributes used)
{p_end}
{res}{txt}(3 missing values generated)
(3 real changes made)
(0 real changes made)
(0 real changes made)
(0 real changes made)
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (_merge==3)
{col 5}{hline 41}
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge3==3)
{col 5}{hline 41}
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge4==3)
{col 5}{hline 41}
(0 differences between {bf:Q} and {bf:graphorder})
{res}{p 0 4 2}
{txt}(note:  named style
vvsmall not found in class
gsize,  default attributes used)
{p_end}
{res}{txt}(3 missing values generated)
(0 real changes made)
(3 real changes made)
(0 real changes made)
(0 real changes made)
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (_merge==3)
{col 5}{hline 41}
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge3==3)
{col 5}{hline 41}
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge4==3)
{col 5}{hline 41}
(0 differences between {bf:Q} and {bf:graphorder})
{res}{p 0 4 2}
{txt}(note:  named style
vvsmall not found in class
gsize,  default attributes used)
{p_end}
{res}{txt}(3 missing values generated)
(0 real changes made)
(0 real changes made)
(3 real changes made)
(0 real changes made)
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (_merge==3)
{col 5}{hline 41}
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge3==3)
{col 5}{hline 41}
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge4==3)
{col 5}{hline 41}
(0 differences between {bf:Q} and {bf:graphorder})
{res}{p 0 4 2}
{txt}(note:  named style
vvsmall not found in class
gsize,  default attributes used)
{p_end}
{res}{txt}(3 missing values generated)
(0 real changes made)
(0 real changes made)
(0 real changes made)
(3 real changes made)
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (_merge==3)
{col 5}{hline 41}
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge3==3)
{col 5}{hline 41}
{res}{txt}(label {bf:{txt}Q} already defined)

{col 5}Result{col 33}Number of obs
{col 5}{hline 41}
{col 5}Not matched{col 30}{res}               0
{txt}{col 5}Matched{col 30}{res}               3{txt}  (merge4==3)
{col 5}{hline 41}
(0 differences between {bf:Q} and {bf:graphorder})
{res}{p 0 4 2}
{txt}(note:  named style
vvsmall not found in class
gsize,  default attributes used)
{p_end}
{res}{txt}
{com}. 
. graph combine gdiff_all gdiff_1 gdiff_2 gdiff_3 gdiff_4 gdiff_5, row(2) ///
> title("On average, racial groups differ in outcomes...", size(medsmall)) ///
> subtitle("To what extent do you believe these differences are due to...", size(small)) ///
> xsize(6.5) ysize(4) imargin(medlarge) iscale(.425) ycommon xcommon
{res}{p 0 4 2}
{txt}(note:  named style
vvsmall not found in class
gsize,  default attributes used)
{p_end}
{res}{p 0 4 2}
{txt}(note:  named style
vvsmall not found in class
gsize,  default attributes used)
{p_end}
{res}{p 0 4 2}
{txt}(note:  named style
vvsmall not found in class
gsize,  default attributes used)
{p_end}
{res}{p 0 4 2}
{txt}(note:  named style
vvsmall not found in class
gsize,  default attributes used)
{p_end}
{res}{p 0 4 2}
{txt}(note:  named style
vvsmall not found in class
gsize,  default attributes used)
{p_end}
{res}{txt}
{com}. graph export AppendixFigureC1.pdf, replace
{txt}{p 0 4 2}
file {bf}
AppendixFigureC1.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. *****N's for caption*****
. sum gdiffbiol gdiffculture gdiffpolicy

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 3}gdiffbiol {c |}{res}      1,446    3.753804    1.321202         -7          5
{txt}gdiffculture {c |}{res}      1,446    2.988243    1.131126          1          5
{txt}{space 1}gdiffpolicy {c |}{res}      1,446     2.73444    1.343966          1          5
{txt}
{com}. tab fivegroups

 {txt}fivegroups {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
      Asian {c |}{res}         56        4.69        4.69
{txt}      Black {c |}{res}        191       16.01       20.70
{txt}   Hispanic {c |}{res}         48        4.02       24.73
{txt}  White DEM {c |}{res}        450       37.72       62.45
{txt}  White GOP {c |}{res}        448       37.55      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,193      100.00
{txt}
{com}. **********END FIGURE 1**********
. 
. *****cleaning up directory*****
. forval v=1/5 {c -(}
{txt}  2{com}. erase gdiffalittlepercent_`v'.dta
{txt}  3{com}. erase gdiffmoderatepercent_`v'.dta
{txt}  4{com}. erase gdiffalotpercent_`v'.dta
{txt}  5{com}. erase gdiffgreatdealpercent_`v'.dta
{txt}  6{com}. {c )-}
{txt}
{com}. erase gdiffalittlepercent.dta
{txt}
{com}. erase gdiffmoderatepercent.dta
{txt}
{com}. erase gdiffalotpercent.dta
{txt}
{com}. erase gdiffgreatdealpercent.dta
{txt}
{com}. *****cleaning up directory*****
. 
. 
. //% AGREE WITH >1
. egen diff_agree = anycount(NOT_bio NOT_cul NOT_pol), val(0)
{txt}
{com}. svy: tab diff_agree
{res}{txt}(running {bf:tabulate} on estimation sample)
{res}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,365}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,365}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,368.8991}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,364}

{txt}{hline 10}{c TT}{hline 11}
NOT_bio   {c |}
NOT_cul   {c |}
NOT_pol   {c |}
== 0      {c |} proportion
{hline 10}{c +}{hline 11}
        1 {c |}      {res}.1557
        {txt}2 {c |}      {res}.3081
        {txt}3 {c |}      {res}.5362
          {txt}{c |} 
    Total {c |}          {res}1
{txt}{hline 10}{c BT}{hline 11}
Key: {col 1}proportion = {res}Cell proportion
{txt}
{com}. recode diff_agree (0 1=0)(2 3=1)(else=.), gen(morethanone)
{txt}(1,446 differences between {bf:diff_agree} and {bf:morethanone})

{com}. 
. *"Conflicting" factors: biology & policy*
. svy: tab YES_bio YES_pol
{res}{txt}(running {bf:tabulate} on estimation sample)
{res}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,364}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,364}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,368.3561}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,363}

{txt}{hline 10}{c TT}{hline 20}
          {c |}       YES_pol      
  YES_bio {c |}     0      1  Total
{hline 10}{c +}{hline 20}
        0 {c |} {res}.0761  .3256  .4017
        {txt}1 {c |} {res}.0533   .545  .5983
          {txt}{c |} 
    Total {c |} {res}.1294  .8706      1
{txt}{hline 10}{c BT}{hline 20}
Key: {col 1}{res}Cell proportion

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}1{txt}){col 35}= {res}  29.3155
{txt}{col 5}Design-based{col 19}F({res}1{txt}, {res}1363{txt}){col 35}= {res}  22.8666{col 51}{txt}P = {res}0.0000
{txt}
{com}. 
. foreach y of varlist morethanone YES_bio YES_cul YES_pol {c -(}
{txt}  2{com}.         svy: tab `y' fivegroups, col
{txt}  3{com}. {c )-}
{res}{txt}(running {bf:tabulate} on estimation sample)
{res}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,123}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,123}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,125.0949}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,122}

{txt}{hline 10}{c TT}{hline 59}
RECODE of {c |}
diff_agre {c |}
e         {c |}
(NOT_bio  {c |}
NOT_cul   {c |}
NOT_pol   {c |}                         fivegroups                        
== 0)     {c |}    Asian     Black  Hispanic  White DE  White GO     Total
{hline 10}{c +}{hline 59}
        0 {c |}    {res}.0799      .106      .097     .1295     .2287     .1564
        {txt}1 {c |}    {res}.9201      .894      .903     .8705     .7713     .8436
          {txt}{c |} 
    Total {c |}        {res}1         1         1         1         1         1
{txt}{hline 10}{c BT}{hline 59}
Key: {col 1}{res}Column proportion

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}4{txt}){col 35}= {res}  26.3167
{txt}{col 5}Design-based{col 19}F({res}3.95{txt}, {res}4435.93{txt}){col 35}= {res}   5.3261{col 51}{txt}P = {res}0.0003
{txt}(running {bf:tabulate} on estimation sample)
{res}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,122}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,122}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,124.5519}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,121}

{txt}{hline 10}{c TT}{hline 59}
          {c |}                         fivegroups                        
  YES_bio {c |}    Asian     Black  Hispanic  White DE  White GO     Total
{hline 10}{c +}{hline 59}
        0 {c |}    {res}.2321     .3043      .192     .5207     .4192     .4135
        {txt}1 {c |}    {res}.7679     .6957      .808     .4793     .5808     .5865
          {txt}{c |} 
    Total {c |}        {res}1         1         1         1         1         1
{txt}{hline 10}{c BT}{hline 59}
Key: {col 1}{res}Column proportion

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}4{txt}){col 35}= {res}  50.0223
{txt}{col 5}Design-based{col 19}F({res}3.73{txt}, {res}4178.43{txt}){col 35}= {res}   8.1098{col 51}{txt}P = {res}0.0000
{txt}(running {bf:tabulate} on estimation sample)
{res}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,123}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,123}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,125.0949}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,122}

{txt}{hline 10}{c TT}{hline 59}
          {c |}                         fivegroups                        
  YES_cul {c |}    Asian     Black  Hispanic  White DE  White GO     Total
{hline 10}{c +}{hline 59}
        0 {c |}    {res}.0539     .1111     .0787      .124     .0569     .0912
        {txt}1 {c |}    {res}.9461     .8889     .9213      .876     .9431     .9088
          {txt}{c |} 
    Total {c |}        {res}1         1         1         1         1         1
{txt}{hline 10}{c BT}{hline 59}
Key: {col 1}{res}Column proportion

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}4{txt}){col 35}= {res}  13.1228
{txt}{col 5}Design-based{col 19}F({res}3.92{txt}, {res}4402.65{txt}){col 35}= {res}   2.7000{col 51}{txt}P = {res}0.0300
{txt}(running {bf:tabulate} on estimation sample)
{res}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,123}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,123}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,125.0949}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,122}

{txt}{hline 10}{c TT}{hline 59}
          {c |}                         fivegroups                        
  YES_pol {c |}    Asian     Black  Hispanic  White DE  White GO     Total
{hline 10}{c +}{hline 59}
        0 {c |}    {res}.0977     .0269     .1033     .0433     .2781     .1312
        {txt}1 {c |}    {res}.9023     .9731     .8967     .9567     .7219     .8688
          {txt}{c |} 
    Total {c |}        {res}1         1         1         1         1         1
{txt}{hline 10}{c BT}{hline 59}
Key: {col 1}{res}Column proportion

{txt}  Pearson:
{col 5}Uncorrected{col 19}chi2({res}4{txt}){col 35}= {res} 122.5387
{txt}{col 5}Design-based{col 19}F({res}3.92{txt}, {res}4396.14{txt}){col 35}= {res}  22.8431{col 51}{txt}P = {res}0.0000
{txt}
{com}. 
. **********START FIGURE 2**********
. gen YES_biopol = .
{txt}(1,446 missing values generated)

{com}. replace YES_biopol =1 if YES_bio==1 & YES_pol==1
{txt}(764 real changes made)

{com}. replace YES_biopol =0 if YES_bio==1 & YES_pol==0
{txt}(68 real changes made)

{com}. replace YES_biopol =0 if YES_bio==0 & YES_pol==1
{txt}(502 real changes made)

{com}. replace YES_biopol =0 if YES_bio==0 & YES_pol==0
{txt}(111 real changes made)

{com}. 
. tempname memhold
{txt}
{com}. tempfile morethanone_any
{txt}
{com}. postfile `memhold' fivegroups propagree seprop using morethanone_any, replace
{txt}{p 0 4 2}
(file {bf}
morethanone_any.dta{rm}
not found)
{p_end}

{com}. forval v=1/5 {c -(}
{txt}  2{com}.         svy: reg morethanone if fivegroups==`v'
{txt}  3{com}.         post `memhold ' (`v') (_b[_cons]) (_se[_cons])
{txt}  4{com}. {c )-}
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 2:1}{txt}{col 54}{lalign 15:Number of obs}{col 69} = {res}{ralign 7:55}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 2:55}{txt}{col 54}{lalign 15:Population size}{col 69} = {res}{ralign 7:66.3357}
{txt}{col 54}{lalign 15:Design df}{col 69} = {res}{ralign 7:54}
{txt}{col 54}{lalign 15:{help j_robustsingular##|_new:F(0, 54)}}{col 69} = {res}{ralign 7:.}
{txt}{col 54}{lalign 15:Prob > F}{col 69} = {res}{ralign 7:.}
{txt}{col 54}{lalign 15:R-squared}{col 69} = {res}{ralign 7:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1} morethanone{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2} .9200943{col 26}{space 2} .0337631{col 37}{space 1}   27.25{col 46}{space 3}0.000{col 54}{space 4} .8524034{col 67}{space 3} .9877853
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 3:1}{txt}{col 53}{lalign 15:Number of obs}{col 68} = {res}{ralign 8:178}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 3:178}{txt}{col 53}{lalign 15:Population size}{col 68} = {res}{ralign 8:185.3122}
{txt}{col 53}{lalign 15:Design df}{col 68} = {res}{ralign 8:177}
{txt}{col 53}{lalign 15:{help j_robustsingular##|_new:F(0, 177)}}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:Prob > F}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:R-squared}{col 68} = {res}{ralign 8:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1} morethanone{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2} .8940172{col 26}{space 2} .0260728{col 37}{space 1}   34.29{col 46}{space 3}0.000{col 54}{space 4} .8425636{col 67}{space 3} .9454709
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 2:1}{txt}{col 54}{lalign 15:Number of obs}{col 69} = {res}{ralign 7:48}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 2:48}{txt}{col 54}{lalign 15:Population size}{col 69} = {res}{ralign 7:62.3657}
{txt}{col 54}{lalign 15:Design df}{col 69} = {res}{ralign 7:47}
{txt}{col 54}{lalign 15:{help j_robustsingular##|_new:F(0, 47)}}{col 69} = {res}{ralign 7:.}
{txt}{col 54}{lalign 15:Prob > F}{col 69} = {res}{ralign 7:.}
{txt}{col 54}{lalign 15:R-squared}{col 69} = {res}{ralign 7:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1} morethanone{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2} .9030413{col 26}{space 2}  .044358{col 37}{space 1}   20.36{col 46}{space 3}0.000{col 54}{space 4} .8138046{col 67}{space 3} .9922779
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 3:1}{txt}{col 53}{lalign 15:Number of obs}{col 68} = {res}{ralign 8:424}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 3:424}{txt}{col 53}{lalign 15:Population size}{col 68} = {res}{ralign 8:408.1418}
{txt}{col 53}{lalign 15:Design df}{col 68} = {res}{ralign 8:423}
{txt}{col 53}{lalign 15:{help j_robustsingular##|_new:F(0, 423)}}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:Prob > F}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:R-squared}{col 68} = {res}{ralign 8:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1} morethanone{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2} .8704881{col 26}{space 2} .0189293{col 37}{space 1}   45.99{col 46}{space 3}0.000{col 54}{space 4}  .833281{col 67}{space 3} .9076953
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 3:1}{txt}{col 53}{lalign 15:Number of obs}{col 68} = {res}{ralign 8:418}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 3:418}{txt}{col 53}{lalign 15:Population size}{col 68} = {res}{ralign 8:402.9395}
{txt}{col 53}{lalign 15:Design df}{col 68} = {res}{ralign 8:417}
{txt}{col 53}{lalign 15:{help j_robustsingular##|_new:F(0, 417)}}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:Prob > F}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:R-squared}{col 68} = {res}{ralign 8:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1} morethanone{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2} .7713327{col 26}{space 2} .0228011{col 37}{space 1}   33.83{col 46}{space 3}0.000{col 54}{space 4} .7265133{col 67}{space 3}  .816152
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. postclose `memhold'
{txt}
{com}.         svy: reg morethanone
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,365}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,365}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,368.8991}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,364}
{txt}{col 51}{lalign 15:{help j_robustsingular##|_new:F(0, 1364)}}{col 66} = {res}{ralign 10:.}
{txt}{col 51}{lalign 15:Prob > F}{col 66} = {res}{ralign 10:.}
{txt}{col 51}{lalign 15:R-squared}{col 66} = {res}{ralign 10:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1} morethanone{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2} .8443039{col 26}{space 2} .0111789{col 37}{space 1}   75.53{col 46}{space 3}0.000{col 54}{space 4} .8223742{col 67}{space 3} .8662337
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. set scheme s1mono
{txt}
{com}. preserve
{txt}
{com}. use morethanone_any, clear
{txt}
{com}. set obs 6
{txt}{p}
Number of observations ({bf:_N}) was 5,
now 6.
{p_end}

{com}. replace fivegroups = 0 in 6
{txt}(1 real change made)

{com}. replace propagree = .8443039 in 6
{txt}(1 real change made)

{com}. replace seprop = .0111789 in 6
{txt}(1 real change made)

{com}. lab def fivegroups 0 "All Rs" 1"Asian" 2"Black" 3"Latino" 4"White DEM" 5"White GOP"
{txt}
{com}. lab val fivegroups fivegroups
{txt}
{com}. gen UB = propagree + 1.96*seprop
{txt}
{com}. gen LB = propagree - 1.96*seprop
{txt}
{com}. twoway (bar propagree fivegroups, fcolor(gs8)) (rcap UB LB fivegroups, lcolor(black)), xlabel(, valuelabel) xtitle(" ") legend(off) ylabel(0(.25)1) title("(a) Proportion Agree with" ">1 Factor") name(morethanone, replace)
{res}{txt}
{com}. restore
{txt}
{com}. 
. tempname memhold
{txt}
{com}. tempfile biopol
{txt}
{com}. postfile `memhold' fivegroups propagree seprop using biopol, replace
{txt}{p 0 4 2}
(file {bf}
biopol.dta{rm}
not found)
{p_end}

{com}. forval v=1/5 {c -(}
{txt}  2{com}.         svy: reg YES_biopol if fivegroups==`v'
{txt}  3{com}.         post `memhold ' (`v') (_b[_cons]) (_se[_cons])
{txt}  4{com}. {c )-}
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 2:1}{txt}{col 54}{lalign 15:Number of obs}{col 69} = {res}{ralign 7:55}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 2:55}{txt}{col 54}{lalign 15:Population size}{col 69} = {res}{ralign 7:66.3357}
{txt}{col 54}{lalign 15:Design df}{col 69} = {res}{ralign 7:54}
{txt}{col 54}{lalign 15:{help j_robustsingular##|_new:F(0, 54)}}{col 69} = {res}{ralign 7:.}
{txt}{col 54}{lalign 15:Prob > F}{col 69} = {res}{ralign 7:.}
{txt}{col 54}{lalign 15:R-squared}{col 69} = {res}{ralign 7:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1}  YES_biopol{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2} .6962646{col 26}{space 2} .0721858{col 37}{space 1}    9.65{col 46}{space 3}0.000{col 54}{space 4} .5515409{col 67}{space 3} .8409883
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 3:1}{txt}{col 53}{lalign 15:Number of obs}{col 68} = {res}{ralign 8:178}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 3:178}{txt}{col 53}{lalign 15:Population size}{col 68} = {res}{ralign 8:185.3122}
{txt}{col 53}{lalign 15:Design df}{col 68} = {res}{ralign 8:177}
{txt}{col 53}{lalign 15:{help j_robustsingular##|_new:F(0, 177)}}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:Prob > F}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:R-squared}{col 68} = {res}{ralign 8:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1}  YES_biopol{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2} .6784642{col 26}{space 2} .0380052{col 37}{space 1}   17.85{col 46}{space 3}0.000{col 54}{space 4} .6034625{col 67}{space 3}  .753466
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 2:1}{txt}{col 54}{lalign 15:Number of obs}{col 69} = {res}{ralign 7:48}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 2:48}{txt}{col 54}{lalign 15:Population size}{col 69} = {res}{ralign 7:62.3657}
{txt}{col 54}{lalign 15:Design df}{col 69} = {res}{ralign 7:47}
{txt}{col 54}{lalign 15:{help j_robustsingular##|_new:F(0, 47)}}{col 69} = {res}{ralign 7:.}
{txt}{col 54}{lalign 15:Prob > F}{col 69} = {res}{ralign 7:.}
{txt}{col 54}{lalign 15:R-squared}{col 69} = {res}{ralign 7:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1}  YES_biopol{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2} .7533757{col 26}{space 2} .0800144{col 37}{space 1}    9.42{col 46}{space 3}0.000{col 54}{space 4} .5924074{col 67}{space 3} .9143439
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 3:1}{txt}{col 53}{lalign 15:Number of obs}{col 68} = {res}{ralign 8:424}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 3:424}{txt}{col 53}{lalign 15:Population size}{col 68} = {res}{ralign 8:408.1418}
{txt}{col 53}{lalign 15:Design df}{col 68} = {res}{ralign 8:423}
{txt}{col 53}{lalign 15:{help j_robustsingular##|_new:F(0, 423)}}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:Prob > F}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:R-squared}{col 68} = {res}{ralign 8:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1}  YES_biopol{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2} .4501509{col 26}{space 2} .0275358{col 37}{space 1}   16.35{col 46}{space 3}0.000{col 54}{space 4} .3960268{col 67}{space 3}  .504275
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 3:1}{txt}{col 53}{lalign 15:Number of obs}{col 68} = {res}{ralign 8:417}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 3:417}{txt}{col 53}{lalign 15:Population size}{col 68} = {res}{ralign 8:402.3965}
{txt}{col 53}{lalign 15:Design df}{col 68} = {res}{ralign 8:416}
{txt}{col 53}{lalign 15:{help j_robustsingular##|_new:F(0, 416)}}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:Prob > F}{col 68} = {res}{ralign 8:.}
{txt}{col 53}{lalign 15:R-squared}{col 68} = {res}{ralign 8:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1}  YES_biopol{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2}  .481445{col 26}{space 2} .0264701{col 37}{space 1}   18.19{col 46}{space 3}0.000{col 54}{space 4} .4294133{col 67}{space 3} .5334768
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. postclose `memhold'
{txt}
{com}. svy: reg YES_biopol
{res}{txt}(running {bf:regress} on estimation sample)
{res}
{txt}Survey: Linear regression

{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 5:1}{txt}{col 51}{lalign 15:Number of obs}{col 66} = {res}{ralign 10:1,364}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 5:1,364}{txt}{col 51}{lalign 15:Population size}{col 66} = {res}{ralign 10:1,368.3561}
{txt}{col 51}{lalign 15:Design df}{col 66} = {res}{ralign 10:1,363}
{txt}{col 51}{lalign 15:{help j_robustsingular##|_new:F(0, 1363)}}{col 66} = {res}{ralign 10:.}
{txt}{col 51}{lalign 15:Prob > F}{col 66} = {res}{ralign 10:.}
{txt}{col 51}{lalign 15:R-squared}{col 66} = {res}{ralign 10:0.0000}

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}  Linearized
{col 1}  YES_biopol{col 14}{c |} Coefficient{col 26}  std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_cons {c |}{col 14}{res}{space 2} .5450189{col 26}{space 2} .0152015{col 37}{space 1}   35.85{col 46}{space 3}0.000{col 54}{space 4} .5151981{col 67}{space 3} .5748398
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. preserve
{txt}
{com}. use biopol, clear
{txt}
{com}. set obs 6
{txt}{p}
Number of observations ({bf:_N}) was 5,
now 6.
{p_end}

{com}. replace fivegroups = 0 in 6
{txt}(1 real change made)

{com}. replace propagree = .5450189 in 6
{txt}(1 real change made)

{com}. replace seprop = .0152015 in 6
{txt}(1 real change made)

{com}. lab def fivegroups 0 "All Rs" 1"Asian" 2"Black" 3"Latino" 4"White DEM" 5"White GOP"
{txt}
{com}. lab val fivegroups fivegroups
{txt}
{com}. gen UB = propagree + 1.96*seprop
{txt}
{com}. gen LB = propagree - 1.96*seprop
{txt}
{com}. twoway (bar propagree fivegroups, fcolor(gs8)) (rcap UB LB fivegroups, lcolor(black)), xlabel(, valuelabel) xtitle(" ") legend(off) ylabel(0(.25)1) title("(b) Proportion Agree with" "Biology and Policies") name(biopol, replace)
{res}{txt}
{com}. restore
{txt}
{com}. 
. graph combine morethanone biopol, ycommon row(1) altshrink ysize(2.5) xsize(6.5)
{res}{txt}
{com}. graph export AppendixFigureC2.pdf, replace
{txt}{p 0 4 2}
file {bf}
AppendixFigureC2.pdf{rm}
saved as
PDF
format
{p_end}

{com}. 
. *****N's for caption*****
. sum morethanone YES_biopol

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 1}morethanone {c |}{res}      1,446    .8416321    .3652119          0          1
{txt}{space 2}YES_biopol {c |}{res}      1,445    .5287197    .4993473          0          1
{txt}
{com}. tab morethanone fivegroup

 {txt}RECODE of {c |}
diff_agree {c |}
  (NOT_bio {c |}
   NOT_cul {c |}
NOT_pol == {c |}                       fivegroups
        0) {c |}     Asian      Black   Hispanic  White DEM  White GOP {c |}     Total
{hline 11}{c +}{hline 55}{c +}{hline 10}
         0 {c |}{res}         7         21          5         60         99 {txt}{c |}{res}       192 
{txt}         1 {c |}{res}        49        170         43        390        349 {txt}{c |}{res}     1,001 
{txt}{hline 11}{c +}{hline 55}{c +}{hline 10}
     Total {c |}{res}        56        191         48        450        448 {txt}{c |}{res}     1,193 
{txt}
{com}. tab YES_biopol fivegroups

           {txt}{c |}                       fivegroups
YES_biopol {c |}     Asian      Black   Hispanic  White DEM  White GOP {c |}     Total
{hline 11}{c +}{hline 55}{c +}{hline 10}
         0 {c |}{res}        22         63         10        256        228 {txt}{c |}{res}       579 
{txt}         1 {c |}{res}        34        128         38        194        219 {txt}{c |}{res}       613 
{txt}{hline 11}{c +}{hline 55}{c +}{hline 10}
     Total {c |}{res}        56        191         48        450        447 {txt}{c |}{res}     1,192 
{txt}
{com}. 
. **********END FIGURE 2**********
. *****cleaning up directory*****
. erase morethanone_any.dta
{txt}
{com}. erase biopol.dta
{txt}
{com}. *****cleaning up directory*****
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\kamcd\Dropbox\CDK WORK\racial disparities essentialism\JOP replication files\Anoll Kam Marcellin ANES 2022 Pilot Analyses.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}10 Jan 2025, 13:26:36
{txt}{.-}
{smcl}
{txt}{sf}{ul off}